const router = require('koa-router')()
const { borrowBook, returnBook, getBorrowList } = require('../controllers/borrow')
router.prefix('/borrow')

// 借书
router.post('/borrowBook', borrowBook)

// 还书
router.post('/returnBook', returnBook)

// 获取书本借阅记录列表
router.get('/list', getBorrowList)

module.exports = router

